﻿using Spacebuilder.Common.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Spacebuilder.Common
{
    /// <summary>
    /// 手机短信设置
    /// </summary>
    public class SmsSettingsManager : ISmsSettingsManager
    {
        private ISettingsRepository<SmsSettings> repository;

        /// <summary>
        /// 构造器
        /// </summary>
        public SmsSettingsManager()
        {
            repository = new SettingsRepository<SmsSettings>();
        }

        #region IEmailSettingsManager 成员

        /// <summary>
        /// 获取smsSettings
        /// </summary>
        /// <returns></returns>
        SmsSettings ISmsSettingsManager.Get()
        {
            return repository.Get();
        }

        /// <summary>
        /// 保存smsSettings
        /// </summary>
        /// <param name="smsSettings"></param>
        public void Save(SmsSettings smsSettings)
        {
            repository.Save(smsSettings);
            
        }


        #endregion

    }
}
